<template>
  <div class="new">
    <div class="img">
      <img src="../../../assets/icon/index/new_jianbao.png" alt="" />
    </div>

    <div class="info">
      
        <van-swipe class="my-swipe"    :autoplay="2000" vertical :show-indicators="false">
          <van-swipe-item
          v-for="item in roll" :key="item.id"
          >
            {{item.info}}
          </van-swipe-item>
        </van-swipe>
      
      <div class="arrow_icon">
        <img src="../../../assets/icon/common/right_arrow.svg" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
    props:{
        roll:{
            type:Array
        }
    }
};
</script>

<style lang="scss" scoped>
.new {
  display: flex;
  height: 39px;
  padding: 0 15px;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  border-bottom:1px solid #eee ;
  box-shadow: 0px 2px 10px 5px #f5f5f5;
  .img {
    height: 14px;
    padding-right: 12px;
    border-right: 1px solid #ddd;
    > img {
      display: block;
      height: 100%;
      width: 62px;
    }
  }

  .info {
    width: 257px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    .arrow_icon {
      > img {
        display: block;
        width: 18px;
        height: 18px;
      }
    }
  }
}
.van-swipe{
    height: 18px;
    overflow: hidden;
}

.van-swipe-item{
    color: #666;
    font-size: 12px;
    height: 18px;
    line-height: 18px;
}
</style>

